import { post, get } from '../http/index'

// 登录接口
export const login = (params) => {
    return post(`/api/app/memberlogin${params}`, )
}

// 退出
export const logout = () => {
    return post('/api/app/userlogout')
}

// 设备地图列表接口

export const deviceMapList = (params) => {
    return get(`/api/App/devicemap`, params)
}
// 设备列表接口
export const getDeviceList = (params) => {
    return get(`/api/App/devicedata`, params)
}
// 运维人员路线
export const getRouteGroup = (params) => {
    return get(`/api/App/routegroup`,params)
}
// 设备详情接口
export const getDeviceDetail = (params) => {
    return get(`/api/App/getdevicemanage?deviceId=${params}`)
    // return get(`/api/App/devicedetail?deviceId=${params}`, )
}
// 设备管理详情 -- 故障记录
export const getWaningLog = (params) => {
    return get(`/api/App/getabnormalrecord`, params)
}
// 设备运行统计
export const getDeviceStatus = (params) =>{
    return get(`/api/App/devicestatus`, params)
}
//预警系统列表
export const getAbnormalRecord = (params) => {
    return get(`/api/App/getabnormallist`, params)
}


// 警情统计接口
export const getSurvey = (params) => {
    return get(`/api/App/survey`, params)
}
// 设备线路统计接口
export const getDevicesurvey = (params) => {
    return get(`/api/App/devicesurvey`,params)
}
// 设备电流、电压，温度过去7天数据统计接口
export const getElectricinfo = (params) => {
    return get(`/api/App/electricinfo`, params)
}
// 设备报警日志接口
export const getAbnormalrecord = () => {
    return get(`/api/App/abnormalrecord`)
}
// 设备运行数据接口
export const getDevicelogs = (params) => {
    return get(`/api/App/devicelogs`, params)
}

// 设备运行数据接口
export const getRoutemenu = (params) => {
    return get(`/api/App/routemenu`, params)
}
// 本月发生异常数据统计接口
export const getMonthData = (params) => {
    return get(`/api/App/monthdata`, params)
}
// 当前用户路线路线接口
export const getMemberRoute = (params) => {
    return get(`/api/App/memberroute`, params)
}